package stringhomework2;

public class StartwithDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        boolean starts=str.startsWith("java");
        System.out.println(starts);
        boolean end=str.endsWith("java");
        System.out.println(end);
    }
}
